<?php
namespace controller;

use request\Request as GameRequest;
use request\Request;
use view\RenderGame;


class GameController {
	
	private static $instance;
	private $controller;
	
	private function __construct() {
	}
	
	
	public static function run(){
		session_start();
		self::$instance = new GameController();
		self::$instance->handleRequest();
	}
	
	private  function handleRequest() {
		$request = new GameRequest();
		
		//$this->validateInput ( $request );

		
		if ($request->getProperty('action')) {
			if ($request->getProperty('action') == 'renderGame') {
				$render =  new RenderGame();
			}
			
		}
	}
	private function validateInput(Request $request) {
		
	}
}
